package org.lex.dbq.view.ddl;

import org.eclipse.swt.widgets.Composite;
import org.lex.dbq.model.jdbc.meta.ColumnVo;
import org.lex.swt.table.TableLabelProvider;

public class ColumnsPane extends TableDDLPane<ColumnVo> {
	public ColumnsPane(Composite parent, int style) {
		super(parent, style, ColumnVo.COLUMN_NAMES);
		this.table.setLabelProvider(new TableLabelProvider() {
			@Override
			public String getColumnText(Object element, int columnIndex) {
				return ((ColumnVo) element).getLabel(columnIndex);
			}
		});
	}
}
